/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Net;

import java.io.BufferedReader;
import java.io.IOException;

/**
 *
 * @author mboungou
 */
public class ListenSocket extends Thread{
    private BufferedReader reader;
    private String lastLine;
    
   public ListenSocket(BufferedReader reader)
   {
       this.reader=reader;
   }
   public void run()
   {
        String chaine="";
        try
        {           
            while((lastLine=reader.readLine())!=null)
            {
                //chaine+=lastLine+"\n";    
                System.out.println("ici 1");
            }  
            
        }
         catch(IOException e){
         System.out.print("Erreur : "+e);        
         }  
   }
   
   public String getLastline()
   {
       return this.lastLine;
   }
    
    
}
